package org.jeecg.modules.permission.fallback;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.permission.api.PermissionApi;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConditionalOnMissingClass("org.jeecg.modules.system.controller.SysPermissionController")
public class PermissionFallback implements PermissionApi {


    @Override
    public Result<List<String>> queryRolePermission(String roleId) {
        throw new RuntimeException("角色权限未开通");
    }

    @Override
    public Result<String> saveAndUpdateRolePermission(String roleId, String permissionIds) {
        throw new RuntimeException("角色权限未开通");
    }
}
